import axiosRequest from '@/utils/request';

// 获取首页轮播图数据
export function getHomeCarousel(title) {
    return axiosRequest({
        url: `/home/carousel${title ? `?title=${title}` : ''}`,
        method: 'GET',
    });
}

// 获取首页热门推荐
export function getHomeHotRecommend() {
    return axiosRequest({
        url: '/home/hot-rec/articles',
        method: 'GET',
    });
}

// 获取首页最新推荐
export function getHomeNewRecommend() {
    return axiosRequest({
        url: '/home/latest-rec/articles',
        method: 'GET',
    });
}
